<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>提现管理管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/live/livePresentRecord/list?state=1">提现管理列表</a></li>
	<%--<shiro:hasPermission name="live:livePresentRecord:edit"><li><a href="${ctx}/live/livePresentRecord/form">提现管理添加</a></li></shiro:hasPermission>
	 --%></ul>
	<form:form id="searchForm" modelAttribute="livePresentRecord" action="${ctx}/live/livePresentRecord/list?state=1" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>支付类型：</label>
				<form:select path="type" class="input-medium">
					<form:option value="" label="全部"/>
					<form:options items="${fns:getDictList('ACCOUNT_TYPE')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
			</li> 
			<li><label>用户Id：</label>
				<form:input path="createById" htmlEscape="false" Pmaxlength="32" class="input-medium"/>
			</li>
			<li><label>提现时间：</label>
				<input name="createDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					value="<fmt:formatDate value="${livePresentRecord.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>用户ID</th>
			    <th>提现账号</th>
				<th>提现状态</th>
				<th>提现金额</th>
			    <th>支付分类</th>
				<th>申请时间</th>
				<th>描述说明</th>
				<shiro:hasPermission name="live:livePresentRecord:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="livePresentRecord">
			<tr>
				<td>
					${livePresentRecord.createById}
				</td>
				<td> 
					${livePresentRecord.account}
			 
				</td>
				<td>${fns:getDictLabel(livePresentRecord.state, 'PRESENT_STATE', '')}</td>
				<td>
					${livePresentRecord.amount}
				</td>
				<td>
					${fns:getDictLabel(livePresentRecord.type, 'ACCOUNT_TYPE', '')}
				</td>
				<td>
					<fmt:formatDate value="${livePresentRecord.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					${livePresentRecord.remarks}
				</td>
			
				<shiro:hasPermission name="live:livePresentRecord:edit"><td>
    				<a href="${ctx}/live/livePresentRecord/applyAudit?id=${livePresentRecord.id}" onclick="return confirmx('确认要删除该提现管理吗？', this.href)">审批</a>
					<%-- <a href="${ctx}/live/livePresentRecord/delete?id=${livePresentRecord.id}" >删除</a> --%>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>